package com.guchenbo.tomcat;

//import cn.tongdun.chaos.lssp.domain.LivySchema;
//import cn.tongdun.chaos.lssp.domain.LivySchemaField;
//import cn.tongdun.chaos.lssp.exception.SessionException;
//import cn.tongdun.chaos.lssp.template.LsspTemplate;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.PostConstruct;
import javax.servlet.http.HttpServletRequest;

/**
 * @author guchenbo
 */
@RestController
public class DemoController {

    @PostConstruct
    public void init() {
        System.out.println("init");
    }

    @GetMapping("/")
    public String ok(HttpServletRequest request) {
        request.getParameterMap();
        return "ok";
    }

    @RequestMapping("/p1")
    public String ok(@RequestBody String body) {
//        request.getParameterMap();
        return "ok";
    }
}
